﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.Services;
using System.Xml.Serialization;


/// <summary>
///CustomDataWebService 的摘要说明
/// </summary>
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class CustomDataWebService : System.Web.Services.WebService
{
    public CustomDataWebService()
    {
        //如果使用设计的组件，请取消注释以下行 
        //InitializeComponent(); 
    }

    [WebMethod]
    [XmlInclude(typeof (Address))]
    public Address GetAddress(string street, string city, int ZIP, string country)
    {
        Address address = new Address(street, city, ZIP, country);

        return address;
    }
}